<!-- Navigation -->
<nav class="navbar navbar-expand-lg navbar-light fixed-top" id="mainNav">
  <div class="container">
    <a class="navbar-brand" href="{{"/" | relative_url }}">冯兄话吉</a>
    <button class="navbar-toggler navbar-toggler-right" type="button" data-toggle="collapse" data-target="#navbarResponsive" aria-controls="navbarResponsive" aria-expanded="false" aria-label="Toggle navigation">
      Menu
      <i class="fa fa-bars"></i>
    </button>
    <div class="collapse navbar-collapse" id="navbarResponsive">
      <ul class="navbar-nav ml-auto">
        <li class="nav-item">
          <a class="nav-link" href="{{"/" | relative_url }}">首页</a>
        </li>
        <!--
        <li class="nav-item">
          <a class="nav-link" href="https://book.learnbyteaching.xyz">冯兄出品</a>
        </li>
        -->
        <li class="nav-item">
          <a class="nav-link" href="{{"/about/" | relative_url }}">关于</a>
        </li>
        <li class="nav-item">
          <a class="nav-link" href="{{"/posts" | relative_url }}">博客</a>
        </li>
        <li class="nav-item">
          <a class="nav-link" href="{{"/contact.html" | relative_url }}">联系</a>
        </li>
        <li class="nav-item">
          <a class="nav-link" href="{{"/resume/" | relative_url }}">我的简历</a>
        </li>

        {% if page.search == true %}
          <li id="search-bar" class="nav-item">
            <a class="nav-link" href="javascript:void(0)"><span><i class="fa fa-search" aria-hidden="true"></i></span></a>
          </li>
        {% endif %}
        <!-- for search -->
        <!--
        <div id="search-container">
            <input type="text" id="search-input" placeholder="搜索">
            <ul id="results-container"></ul>
        </div>
        -->
            <!--
            <div class="dropdown navbar-form navbar-right">
              <input id="dLabel" name="word" type="text" aria-haspopup="true" aria-expanded="false" data-toggle="dropdown" class="form-control typeahead" placeholder="搜索" />
              <ul class="dropdown-menu" aria-labelledby="dLabel" id="c"></ul>
            </div>
            -->
      </ul>
    </div>
  </div>
</nav>
{% if page.search == true %}
<div id="search-container" style="display: none;">
  <input type="text" id="search-input" placeholder="搜索">
  <ul id="results-container"></ul>
</div>
{% endif %}
